package com.front.frontdemo.controller;

import com.example.comm.client.MDiaryPlanClient;
import com.example.comm.vo.MDiaryPlan;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 计划事情及完成状态网关action
 */
@RequestMapping("/MDiaryPlan")
@RestController
public class MDiaryPlanController {

    @Resource
    private MDiaryPlanClient mDiaryPlanClient;

    @PostMapping("/add")
    public Map add(MDiaryPlan mDiaryPlan) {
        return mDiaryPlanClient.add(mDiaryPlan);
    }

}
